/**
 * Created by weikexin .
 * description:
 **/
import {HTTP} from '../util/http'

class Company extends HTTP {
    info(success, fail) {
        let url = 'company/info'
        let data = {
            userId: wx.getStorageSync('userInfo').user_id || 0
        }
        this.request({
            url: url,
            data: data,
            success,
            fail
        })
    }

    register(params = {}, urlDara = {}, success) {
        let url = 'company/register'
        let data = Object.assign({},
            params,
            {})
        this.request({
            url: url,
            method: 'POST',
            data: data,
            urlData: urlDara,
            success
        })
    }

    registerAgain(params = {}, urlDara = {}, success) {
        let url = 'company/again/register'
        let data = Object.assign({},
            params,
            {})
        this.request({
            url: url,
            method: 'POST',
            data: data,
            urlData: urlDara,
            success
        })
    }

}

export {Company}